Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overlap methods revised #21

Merged
merged 10 commits into from
May 12, 2024
Merged

Conversation

marco-mariotti
Copy link
Member

I built the last (?) how-to page, about overlap-related methods, and I corrected interfaces and functioning in response. Overview of changes:

  • added slack to overlap
  • changed how strand_behavior 'opposite' is resolved in various methods
  • join_ranges now preserve order of left object; but resets index (otherwise, what do we put in index for 'right'/'outer' for right rows without overlap?)
  • count_overlaps, intersect, subtract_ranges now preserve order of left object
  • fixed bugs in nearest

Important: I changed the meaning for slack for consistency: now slack=0 means bookended intervals do not overlap in all methods. This required changes in max_disjoint, merge_overlaps, cluster

marco-mariotti and others added 6 commits May 5, 2024 15:17
…ved, how_to_overlaps half-way; join_ranges now resets index and preserve order of left object; count_overlaps, intersect, subtract_ranges now preserve order of left obj; nearest had bugs; cluster changed slack meaning for consistency
@marco-mariotti
Copy link
Member Author

@endrebak I appreciate your feedback on this one, it's potentially a big change, and the last one before advertising this version

@marco-mariotti marco-mariotti merged commit 7aea65a into pyranges:master May 12, 2024
1 check passed
@endrebak
Copy link
Collaborator

I will have time to look at it 20. of May.

@endrebak
Copy link
Collaborator

Scratch that. I'll have to start looking at my Ph.D. then. Taking the month of June off to revise my Ph.D. and won't look at pyranges until after then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants